package com.hhxy.oop;

public class Movie {
    //定义成员变量
    private String name;
    private double score;
    private String actor;
    //自动生成有参构造器

    public Movie(String name, double score, String actor) {
        this.name = name;
        this.score = score;
        this.actor = actor;
    }

    //存在有参构造器就需要手动设置（也可以自动生成）无参构造器

    public Movie() {
    }

    //自动生成get、set方法


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    public String getActor() {
        return actor;
    }

    public void setActor(String actor) {
        this.actor = actor;
    }
}
